﻿@model IEnumerable<WebWindow3.GLKService4.Product>
@{
    ViewBag.Title = "Products";
    Layout = "~/Views/MainTemplate.cshtml";
}

<h2>Products</h2>
<form action="/Main/PrePay" method="POST">
    <table>
        @foreach (var item in Model)
        {
            <tr>
                <td>@item.ID</td>
                <td>@item.Name</td>
                <td>@item.Price</td>
                <td><input type="checkbox" name="item@(item.ID)"/></td>
            </tr>
        }
    </table>
    <button type="submit">Оплатить</button>
</form>
